import {Module} from '@nestjs/common';
import {JwtModule} from '@nestjs/jwt'
import {JwtStrategy} from "./auth/jwt.strategy"
import {AuthService} from './auth/auth/auth.service';

@Module({
    imports: [
        JwtModule.register({
            secret: "gene",
            signOptions: {
                expiresIn: '7d', // 设置过期时间7天
            }
        })
    ],
    controllers: [],
    providers: [AuthService, JwtStrategy],
    exports: [AuthService]
})
export class AuthModule {
}
